package cn.tfyhyc.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import java.util.UUID;

/**
 * @author 头发又黑又长
 * @Date 2022/10/2 23:40
 * @email zwb15083976291@163.com
 */
@Slf4j
@RestController
@RequestMapping("/payment")
public class PaymentController {

    @Value("${server.port}") // 获取当前项目的端口
    private String port;

    @GetMapping("/zk")
    public String paymentzk(){
        return  " spring cloud with zookeeper : " + port + "\t" + UUID.randomUUID().toString();
    }
}
